
#include "WProgram.h"
#include "WString.h"
#include "./status.h"

status::status() {
    externalTemp=0;
	sSP1=SP_OFF;
	sSP2=SP_OFF;
	sSP3=SP_OFF;
	sSP4=SP_OFF;
	
	timerSP1=TIMER_OFF;
	timerSP2=TIMER_OFF;
	timerSP3=TIMER_OFF;
	timerSP4=TIMER_OFF;
}
/***************SETTER **********************************************/
void status::setTemp(int temp){
	externalTemp=temp;
}

void status::setTimerSP1(int minute){
	timerSP1=minute;
	sSP1=SP_ON;
}

void status::setTimerSP2(int minute){
	timerSP2=minute;
	sSP2=SP_ON;
}

void status::setTimerSP3(int minute){
	timerSP3=minute;
	sSP3=SP_ON;
}

void status::setTimerSP4(int minute){
	timerSP4=minute;
	sSP4=SP_ON;
}

void status::stopSP1(){
	sSP1=SP_OFF;
	timerSP1=TIMER_OFF;
}

void status::stopSP2(){
	sSP2=SP_OFF;
	timerSP2=TIMER_OFF;
}
 
void status::stopSP3(){
	sSP3=SP_OFF;
	timerSP3=TIMER_OFF;
}

void status::stopSP4(){
	sSP4=SP_OFF;
	timerSP4=TIMER_OFF;
}
/***************GETTER TIMER ****************************************/
int status::getTimerSP1(){
	return timerSP1;
}

int status::getTimerSP2(){
	return timerSP2;
}

int status::getTimerSP3(){
	return timerSP3;
}

int status::getTimerSP4(){
	return timerSP4;
}
/***************GETTER STATUS ****************************************/
int status::getStatusSP1(){
	return sSP1;
}

int status::getStatusSP2(){
	return sSP2;
}

int status::getStatusSP3(){
	return sSP3;
}

int status::getStatusSP4(){
	return sSP4;
}
/*********************************************************************/
int status::getTemp(){
	return externalTemp;
}
